package com.smedi.ismedi.organization.core;

import com.smedi.ismedi.constructionproject.api.feign.RemoteBidSectionFeignApi;
import com.smedi.ismedi.constructionproject.api.feign.RemoteConstructionProjectFeignApi;
import com.smedi.ismedi.constructionproject.api.feign.RemoteProjectAssignmentFeignApi;
import com.smedi.ismedi.notification.api.feign.RemoteSmsNotificationFeignApi;
import com.smedi.ismedi.personnel.api.feign.RemotePersonValidateFeignApi;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({"com.smedi.ismedi.organization.core.port.adapter.persistence.mybatis.mapper"})
@EnableFeignClients(basePackages = {
        "com.smedi.ismedi.personnel.api.feign",
        "com.smedi.ismedi.constructionproject.api.feign",
        "com.smedi.ismedi.notification.api.feign"
}, basePackageClasses = {
        RemotePersonValidateFeignApi.class,
        RemoteConstructionProjectFeignApi.class,
        RemoteProjectAssignmentFeignApi.class,
        RemoteBidSectionFeignApi.class,
        RemoteSmsNotificationFeignApi.class

})
public class ISmediOrganizationCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(ISmediOrganizationCoreApplication.class, args);
    }
}
